<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全局的混入</title>
</head>
<body>
<div id="app">

</div>

<script type="module">
    import {createApp} from "../../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup() {
                return {}
            },
          myOptions:"Hello, World!",
        }
    )

    app.mixin(
        {
            created:function () {
                // console.log(this);
                console.log(this.$options.myOptions);
            }
        }
    )

    app.mount("#app")
</script>
</body>
</html>